export default class Dep {
  constructor() {
    this.watchers = [];
  }
  push(watcher) {
    this.watchers.push(watcher);
  }
  notify(vm) {
    this.watchers.forEach((w) => w.update());

    let updated = vm.$options.updated;
    if (updated) {
      updated.call(vm);
    }
  }
}
